import request from '@/utils/request'

// 查询对账单列表
export function listPayOrder (query) {
  return request({
    url: '/system/payOrder/list',
    method: 'get',
    params: query
  })
}

// 查询对账单详细
export function getPayOrder (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/payOrder/getInfo',
    method: 'get',
    params: params
  })
}

// 新增对账单
export function addPayOrder (data) {
  return request({
    url: '/system/payOrder/insert',
    method: 'post',
    data: data
  })
}

// 修改对账单
export function updatePayOrder (data) {
  return request({
    url: '/system/payOrder/update',
    method: 'post',
    data: data
  })
}

// 删除对账单
export function delPayOrder (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/payOrder/delete',
    method: 'post',
    params: params
  })
}
// 批量删除对账单
export function delBatchPayOrder (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/payOrder/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入对账单
export function importData (data) {
  return request({
    url: '/system/payOrder/importData',
    method: 'post',
    data: data
  })
}
